package com.aiyige.page.advertisement.model;

public class AdDeploy {
    String city;
    String avocation;
    long startTime;
    long endTime;

    public AdDeploy() {
    }

    private AdDeploy(Builder builder) {
        setCity(builder.city);
        setAvocation(builder.avocation);
        setStartTime(builder.startTime);
        setEndTime(builder.endTime);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getAvocation() {
        return avocation;
    }

    public void setAvocation(String avocation) {
        this.avocation = avocation;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public static final class Builder {
        private String city;
        private String avocation;
        private long startTime;
        private long endTime;

        private Builder() {
        }

        public Builder city(String val) {
            city = val;
            return this;
        }

        public Builder avocation(String val) {
            avocation = val;
            return this;
        }

        public Builder startTime(long val) {
            startTime = val;
            return this;
        }

        public Builder endTime(long val) {
            endTime = val;
            return this;
        }

        public AdDeploy build() {
            return new AdDeploy(this);
        }
    }
}
